<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>登录</h1>
    <p>测试数据： 1/1</p>
    <form method="post" aciton="/login/">

      {% comment %} django内部设置的，用来校验是否是网站内部发来的请求 {% endcomment %}
      {% csrf_token %}

      <input type="text" name="user" placeholder="用户名"/>
      <input type="password" name="pwd" placeholder="密码"/>
      <input type="submit" value="提交"/><span style="color:red">{{error_msg}}</span>
    </form>
  </body>
</html>
